package top.huiger.newday.base

import android.os.Bundle
import android.support.v7.app.AppCompatActivity

/**
 *
 * Created by <huiGer> on 2018/1/8
 */
abstract class BaseActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(setViewId())
        initData()
        initEvent()
        loadData()

    }

    protected abstract fun setViewId(): Int
    protected abstract fun initData()
    protected abstract fun initEvent()
    protected abstract fun loadData()

}